// import { getToken } from '@/utils/tools';
import { request } from '@umijs/max';

/** 登录接口 POST /api/login/account */
export async function loginAPI(body: Manager.loginInfo) {
  return request('/auth/admin_login', {
    method: 'POST',
    headers: {
      'Content-Type': 'application/json',
    },
    data: body,
  });
}

export async function loadCurrentUserAPI() {
  return request('/admin/managers/info', {
  })
}
